package dao

import (
	"yundian/internel/app/models/logs"
	"yundian/internel/pkg/dingo"
	"yundian/internel/pkg/dingo/global"
)

type LogsDao struct{}

func NewLogsDao() *LogsDao {
	return &LogsDao{}
}

func (d *LogsDao) InsertBluetoothRechargeLog(m *logs.BluetoothRechargeLogDb) *dingo.ErrorWrap {
	db := global.Orm.Create(m)
	return dingo.ErrorIf(db.Error, true)
}
